from flask_wtf import FlaskForm
from flask_wtf.file import FileAllowed,FileField,FileRequired
from wtforms import SelectField, PasswordField, SubmitField, StringField, ValidationError, BooleanField,TextAreaField
from wtforms.validators import DataRequired, Length, EqualTo,Email
from app.models import User
from  app.extensions import photos

# 发表的form
class PublishForm(FlaskForm):
    publish_text = TextAreaField('',validators=[DataRequired()],render_kw={'placeholder':'输入你想发表的内容','style':'width:100%;'})
    submit = SubmitField('发表')


# 回复表单
# class ReplyForm(FlaskForm):
#     reply_text = TextAreaField('',validators=[DataRequired()],render_kw={'placeholder':'请输入的内容...','style':'width:60%;'})
#     submit = SubmitField('回复')